package com.fortune.cat.filter;

import org.springframework.cloud.gateway.filter.NettyWriteResponseFilter;
import org.springframework.core.Ordered;

/**
 * @author zhaozeyang
 * @date 2019/4/23 17:16
 * @description
 */
public interface CustomizeFilterOrder {

    /**
     * 全局日志记录最高优先级，并要在NettyWriteResponseFilter 之前
     */
    Integer GLOBAL_LOG_ORDER = Ordered.HIGHEST_PRECEDENCE + 2 >= NettyWriteResponseFilter.WRITE_RESPONSE_FILTER_ORDER ? Ordered.HIGHEST_PRECEDENCE + 2 : NettyWriteResponseFilter.WRITE_RESPONSE_FILTER_ORDER - 1;


}
